package cn.hy.visit;

import java.util.ArrayList;
import java.util.List;

public class MilkTeaShop {

    private final List<MilkTea> milkTeas  = new ArrayList<>();

    public void add(MilkTea milkTea) {
        milkTeas.add(milkTea);
    }

    public void remove(MilkTea milkTea) {
        milkTeas.remove(milkTea);
    }

    public void accept(Member member) {
        milkTeas.forEach(milkTea ->  milkTea.accept(member));
    }

}
